What is a Flux in the context of Spring WebFlux?
1.A data structure holding 0 to N elements.
2.A data processing operation.
3. A type of database.
4. A network protocol.
Posted Date:-2024-01-29 18:01:14
What is the use of Angular Directives?
1. To inject services
2.To initialize component state
3. To manipulate the DOM elements
4.. To store data
Posted Date:-2024-01-29 17:50:05
Which directive is used in Angular to add/remove an HTML element from the DOM based on a condition?
1.ngFor
2.ngSelect
3.ngSwitch
4.ngIf
Posted Date:-2024-01-29 17:46:01
Angular is primarily considered as?
1.A JavaScript Framework
2. A CSS Framework
3. A content management system
4.A database system
Posted Date:-2024-01-29 17:43:47
How can you bind to an input box value in Angular?
1.Using ngValue
2.Using ngBind
3.Using [(value)]
4. Using [(ngModel)]
Posted Date:-2024-01-29 17:55:28
How can you execute a long-running task in a separate thread using WebFlux?
1.publishOn
2.subscribeOn
3.block
4.asyncRun
Posted Date:-2024-01-29 18:02:21
How can you fetch data from a server or database in Angular?
1.Using the HTTPModule
2.Using the FetchAPI
3.Using the ServerModule
4.Using the DatabaseModule
Posted Date:-2024-01-29 17:46:30
How can you generate a new service using Angular CLI?
1.ng create service my-service
2.ng generate service my-service
3.ng new service my-service
4.ng add service my-service
Posted Date:-2024-01-29 17:49:40
How do you bind data to an attribute in Angular?
1.variable
2.variable
3.variable
4.variable
Posted Date:-2024-01-29 17:45:15
How do you define a route in Angular?
1. Using <a> tags
2.Using the Router service
3. Using the Routes array
4.Using the @Route() decorator
Posted Date:-2024-01-29 17:51:53
How do you fetch data from a server or API in Angular?
1.Using the XMLHttpRequest object
2.Using the HttpClient module
3.Using the fetchData method
4.Using the AjaxModule
Posted Date:-2024-01-29 17:56:49
In Angular, which directive is used to apply styles conditionally?
1.ngStyle
2.ngClass
3.ngIf
4.ngApply
Posted Date:-2024-01-29 17:55:52
In Spring WebFlux, which component is responsible for handling incoming HTTP requests in a non-blocking manner?
1.WebHandler
2.ReactiveHandler
3.FluxHandler
4.MonoHandler
Posted Date:-2024-01-29 18:01:40
In which lifecycle hook is it recommended to send HTTP requests in an Angular component?
1.constructor
2.ngOnInit
3.ngOnDestroy
4.ngAfterViewInit
Posted Date:-2024-01-29 17:48:41
What decorator is used to create a service in Angular?
1.Directive
2.Component
3.Injectable
4.Service
Posted Date:-2024-01-29 17:57:20
What does a pipe do in Angular?
1.Connects two components
2.Transforms data in the template
3.Merges streams of data
4.Opens a direct connection to the server
Posted Date:-2024-01-29 17:47:00
What is a Mono in the context of Spring WebFlux?
1.A data structure holding 0 or 1 element.
2.A data structure holding multiple elements.
3.A data processing operation.
4.A type of database.
Posted Date:-2024-01-29 18:00:54
What is the main difference between constructor and ngOnInit in Angular?
1.They serve the same purpose
2.constructor is used for initialization, while ngOnInit is used for destruction
3. constructor is used for dependency injection, while ngOnInit is used for initialization logic
4.ngOnInit is used for dependency injection, while the constructor is used for initialization logic
Posted Date:-2024-01-29 17:53:09
What is the primary motivation behind Spring WebFlux?
1.Object-relational mapping
2. MVC pattern
3.Reactive programming
4. Synchronous processing
Posted Date:-2024-01-29 17:58:53
What is the primary purpose of NgModules in Angular?
1.Error handling
2.Two-way data binding
3. To group together components, directives, and services that are related
4. To enhance performance
Posted Date:-2024-01-29 17:55:02
What is the purpose of the async pipe in Angular?
1.To make asynchronous HTTP requests
2.. To automatically unsubscribe from observables or promises
3.To pause the execution of the application
4. To run change detection asynchronously
Posted Date:-2024-01-29 17:53:32
What purpose does the ngModel directive serve?
1.Handling HTTP requests
2.Data binding for both input and output
3.Listening to DOM events
4.Controlling animation
Posted Date:-2024-01-29 17:49:12
What's the primary purpose of the ngOnInit lifecycle hook in Angular components?
1.Initialization and data retrieval
2.Destruction of instances
3.Manipulation of the view's DOM
4. Handling of user input
Posted Date:-2024-01-29 17:52:20
Which Angular decorator is used for making a class a root module?
1.Module
2.Component
3.Directive
4.NgModule
Posted Date:-2024-01-29 17:50:29
Which Angular decorator is used to listen to DOM events?
1.Output
2.Input
3.Event
4.HostListener
Posted Date:-2024-01-29 17:45:39
Which annotation is used to define a reactive REST controller in Spring WebFlux?
1.Controller
2.RestController
3.ReactiveController
4.RestControllerFlux
Posted Date:-2024-01-29 18:00:10
Which command is used to create a new Angular project?
1.npm create angular-app
2. ng new project-name
3.angular init project-name
4.npm start angular
Posted Date:-2024-01-29 17:44:12
Which command is used to install Angular CLI globally?
1.npm install @angular/cli
2.npm global install @angular/cli
3.npm install -g @angular/cli
4.. npm --install @angular/cli
Posted Date:-2024-01-29 17:51:26
Which decorator allows communication from a child component to its parent?
1.Input
2.Output
3.ViewChild
4.Connect
Posted Date:-2024-01-29 17:47:21
Which decorator allows you to define styles for a component?
1.Style
2.ViewStyle
3.ComponentStyle
4.Component({styles: ...})
Posted Date:-2024-01-29 17:52:42
Which decorator in Angular is used to get data from a parent component?
1.Input
2.Output
3.ViewChild
4.GetData
Posted Date:-2024-01-29 17:58:02
Which decorator is used to listen to host events in an Angular directive?
1.EventListener
2.HostBinding
3.HostListener
4.Listen
Posted Date:-2024-01-29 17:56:27
Which directive is used in Angular to loop through an array or object?
1. ngFor
2.ngIf
3. ngSwitch
4.ngWhile
Posted Date:-2024-01-29 17:54:38
Which is the correct syntax for an Angular Event binding?
1.{click}="doSomething()"
2.on-click="doSomething()"
3.(click)="doSomething()"
4.click[]="doSomething()"
Posted Date:-2024-01-29 17:51:00
Which module in Angular includes basic directives like ngIf and ngFor?
1.BrowserModule
2.FormsModule
3.AppModule
4.CommonModule
Posted Date:-2024-01-29 17:57:43
Which of the following is a core component in an Angular application?
1. ViewController
2.Directive
3.Activity
4.Observer
Posted Date:-2024-01-29 17:44:34
Which of the following is a core reactive type in Spring WebFlux?
1.List
2.Set
3.Mono
4.HashMap
Posted Date:-2024-01-29 17:59:12
Which of the following is NOT a core component of Spring WebFlux?
1.Mono
2.Flux
3.Callable
4.RouterFunction
Posted Date:-2024-01-29 18:00:33
Which of the following methods is used to handle errors in a Subscriber?
1.onSubscribe
2.onNext
3.onError
4.onComplete
Posted Date:-2024-01-29 18:02:02
Which reactive type represents a stream of multiple items in WebFlux?
1.Mono
2.Duo
3.Flux
4.ReactiveStream
Posted Date:-2024-01-29 17:59:47